<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="ArticulosViewDlg" widgetVar="ArticulosViewDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.ViewArticulosTitle}">

            <h:form id="ArticulosViewForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2" rendered="#{articulosController.selected != null}">

                        <h:outputText value="#{myBundle.ViewArticulosLabel_codArticulo}"/>
                        <h:outputText value="#{articulosController.selected.codArticulo}" title="#{myBundle.ViewArticulosTitle_codArticulo}"/>

                        <h:outputText value="#{myBundle.ViewArticulosLabel_descripcion}"/>
                        <h:outputText value="#{articulosController.selected.descripcion}" title="#{myBundle.ViewArticulosTitle_descripcion}"/>

                        <h:outputText value="#{myBundle.ViewArticulosLabel_nroParte}"/>
                        <h:outputText value="#{articulosController.selected.nroParte}" title="#{myBundle.ViewArticulosTitle_nroParte}"/>

                        <h:outputText value="#{myBundle.ViewArticulosLabel_precio}"/>
                        <h:outputText value="#{articulosController.selected.precio}" title="#{myBundle.ViewArticulosTitle_precio}"/>

                        <h:outputText value="#{myBundle.ViewArticulosLabel_codOrigen}"/>
                        <h:outputText value="#{articulosController.selected.codOrigen}" title="#{myBundle.ViewArticulosTitle_codOrigen}"/>

                        <h:outputText value="#{myBundle.ViewArticulosLabel_costoCalculado}"/>
                        <h:outputText value="#{articulosController.selected.costoCalculado}" title="#{myBundle.ViewArticulosTitle_costoCalculado}"/>

                        <h:outputText value="#{myBundle.ViewArticulosLabel_saldoActual}"/>
                        <h:outputText value="#{articulosController.selected.saldoActual}" title="#{myBundle.ViewArticulosTitle_saldoActual}"/>

                        <h:outputText value="#{myBundle.ViewArticulosLabel_porcentajeIva}"/>
                        <h:outputText value="#{articulosController.selected.porcentajeIva}" title="#{myBundle.ViewArticulosTitle_porcentajeIva}"/>

                        <h:outputText value="#{myBundle.ViewArticulosLabel_costo1}"/>
                        <h:outputText value="#{articulosController.selected.costo1}" title="#{myBundle.ViewArticulosTitle_costo1}"/>

                        <h:outputText value="#{myBundle.ViewArticulosLabel_costo2}"/>
                        <h:outputText value="#{articulosController.selected.costo2}" title="#{myBundle.ViewArticulosTitle_costo2}"/>

                        <h:outputText value="#{myBundle.ViewArticulosLabel_codMarca}"/>
                        <h:outputText value="#{articulosController.selected.codMarca.descripcion}"/>

                        <h:outputText value="#{myBundle.ViewArticulosLabel_codFamilia}"/>
                        <h:outputText value="#{articulosController.selected.codFamilia.descripcion}"/>

                        <h:outputText value="#{myBundle.ViewArticulosLabel_notasCreditoDetalleList}"/>

                        <h:outputText value="#{myBundle.ViewArticulosLabel_ventasDetalleList}"/>

                        <h:outputText value="#{myBundle.ViewArticulosLabel_entradaSalidaArticulosList}"/>

                        <h:outputText value="#{myBundle.ViewArticulosLabel_ordenesDetalleList}"/>

                        <h:outputText value="#{myBundle.ViewArticulosLabel_comprasDetalleList}"/>
                    </p:panelGrid>
                    <p:commandButton value="#{myBundle.Close}" onclick="ArticulosViewDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
